package com.silverbox.waimai.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.silverbox.waimai.entity.WaimaiItem;
import com.silverbox.waimai.entity.extend.WaimaiItemExtend;

public interface WaimaiItemMapper {
	int deleteByPrimaryKey(Long id);

	int insert(WaimaiItem record);

	int insertSelective(WaimaiItem record);

	WaimaiItem selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(WaimaiItem record);

	int updateByPrimaryKey(WaimaiItem record);

	/**
	 * 根据waimaiId查询订单项
	 */
	List<WaimaiItemExtend> getWaimaiItemByWaimaiId(Integer waimaiId);

	/**
	 * 加菜新增订单项
	 * @param item
	 */
	void addWaimaiItemForAddFish(WaimaiItem item);
	
	/**
	 * 根据waimaiId查询订单项
	 */
	List<WaimaiItem> getWaimaiItemList(@Param("waimaiId") Long waimaiId);
}